package com.credithc.customers.base.ro;

import com.credithc.customers.base.utils.CustomerUtils;
import lombok.Data;

/**
 * @description: 【h5】依据选择客户号换取正式code
 * @author: dhx
 * @date: 2019/7/8 15:47
 * @param: null
 * @return:
 */
@Data
public class UnifyFormalCodeRo extends CustomerBaseRo {

    private String tempCode;

    private String preCustomerNo;

    private String customerNo;

    public static void checkBaseParam(UnifyFormalCodeRo ro) {
        CustomerUtils.checkRequestNo(ro.getRequestNo());
        CustomerUtils.checkCode(ro.getTempCode());
        CustomerUtils.checkPreCustomerNo(ro.getPreCustomerNo());
        CustomerUtils.checkCustomerNo(ro.getCustomerNo());

    }
}
